package com.lk.lkappearance.controller;

import com.lk.lkappearance.common.AbstractBaseController;
import com.lk.lkappearance.model.Clicks;
import com.lk.lkappearance.service.ClicksService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("/api/clicks")
public class ClicksController extends AbstractBaseController {

    @Autowired
    private ClicksService clicksService;

    /**
     * @param clicks
     * @return
     */
    @GetMapping("/getList")
    public Map<String,Object> getList(@RequestBody Clicks clicks) {
        log.info("获取点击量列表");
        return clicksService.getList(clicks);
    }

}
